
//
//  CycleModel.swift
//  CWLiving
//
//  Created by 方正刚 on 2017/7/10.
//  Copyright © 2017年 方正刚. All rights reserved.
//

import UIKit

class CycleModel: NSObject {

    
    /// 标题
    var title = ""
    
    /// 轮播图片
    var pic_url = ""
    
    /// 主播字典信息
    var room: [String : NSObject]? {
        didSet {
            
            guard let room = room else {
                return
            }
            
            anchor = AnchorModel(dict: room)
        }
    }
    
    
    /// 主播模型数据
    var anchor: AnchorModel?
    
    init(dict: [String : NSObject]) {
        super.init()
        
        setValuesForKeys(dict)
    }
    
    override func setValue(_ value: Any?, forUndefinedKey key: String) {
        
    }
    
}
